﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace QLSVPT1h
{
    public partial class Homepage_Form : Form
    {
        public Homepage_Form()
        {
            InitializeComponent();
        }

        private void lb_logout_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Login_Form login_form = new Login_Form();
            this.Visible = false;
            login_form.Show();
             
        }

      

        private void Homepage_Form_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void pictureBox6_Click(object sender, EventArgs e)
        {
            TimKiemHS tk = new TimKiemHS();
            this.Visible = false;
            tk.Show();
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            Form1 f1 = new Form1();
            this.Visible = false;
            f1.Show();
        }

        private void pictureBox4_Click(object sender, EventArgs e)
        {
            ChinhSuaHS cs = new ChinhSuaHS();
            this.Visible = false;
            cs.Show();
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            ThayDoiQD csqd = new ThayDoiQD();
            this.Visible = false;
            csqd.Show();
        }

        private void pictureBox5_Click(object sender, EventArgs e)
        {
            Bang_diem_mon bd = new Bang_diem_mon();
            this.Visible = false;
            bd.Show();
        }

        private void pictureBox7_Click(object sender, EventArgs e)
        {
            BaoCao bc = new BaoCao();
            this.Visible = false;
            bc.Show();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process p = new Process();
            p.StartInfo.FileName = "iexplore.exe";
            p.StartInfo.Arguments = "http://www.qlhs.freevnn.com/webhuongdan";
            p.Start();
        }
    }
}
